import request from '@/utils/request'

// 查询数据下载列表
export function listDataDownload(query) {
  return request({
    url: '/dataDownload/dataDownload/list',
    method: 'get',
    params: query
  })
}

// 查询数据下载详细
export function getDataDownload(id) {
  return request({
    url: '/dataDownload/dataDownload/' + id,
    method: 'get'
  })
}

// 新增数据下载
export function addDataDownload(data) {
  return request({
    url: '/dataDownload/dataDownload',
    method: 'post',
    data: data
  })
}

// 修改数据下载
export function updateDataDownload(data) {
  return request({
    url: '/dataDownload/dataDownload',
    method: 'put',
    data: data
  })
}

// 删除数据下载
export function delDataDownload(id) {
  return request({
    url: '/dataDownload/dataDownload/' + id,
    method: 'delete'
  })
}

export function uploadDataDownload(formData) {
  return request({
    url: '/dataDownload/dataDownload/upload',
    method: 'post',
    data: formData,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}